 function autoShow (currentPageRight){
    	var ret;
		$.ajax({
			cache : true,
			type : "post",
			url : "getCurrentMenu.right",
			data : "{}",
			async : false,
			error : function(XMLHttpRequest, textStatus, errorThrown) {
				alert(XMLHttpRequest.status);
				alert(XMLHttpRequest.readyState);
				alert(textStatus);
			},
			success : function(data) {
				ret = JSON.parse(data);
			}
		});
		var menus=new Array();
		var rolelength=ret.length;
		var index=0;
		for (var i=0;i<rolelength;i++){
			var menuslength = ret[i].menus.length;
			for(var j=0;j<menuslength;j++){
				menus[index]=ret[i].menus[j].menuid;
				index++;
			}	
		}
		for(var i=0;i<currentPageRight.length;i++){
			if(menus.indexOf(currentPageRight[i])==-1){
				var targe = document.getElementsByName(currentPageRight[i]);
				for(var j=0;j<targe.length;j++){
					targe[j].style.display="none";
				}
			}

		}
    }